package com.cacho.s2b.lesson.design;

/**
 * @Description 单例模式：1.饿汉式（静态常量）【可用】
 * @Author LingWei
 * @date 2023/12/14
 **/
public class Singleton1 {
    private final static Singleton1 INSTANCE = new Singleton1();
    private Singleton1(){}

    public static Singleton1 getInstance(){
        return INSTANCE;
    }
}